package com.example.demo.create.factory.abstract_factory;

/**
 * Created by zzz on 2021/1/28 下午11:46
 */
public class AbstractFactoryTest {


    public static void main(String[] args) {
        AbstractFactory huawei = new HuWei();
        huawei.createProduct().print();
        huawei.createFood().taste();

        AbstractFactory xiaomi = new XiaoMi();
        xiaomi.createProduct().print();
        xiaomi.createFood().taste();
    }

}
